package Extends.CircleExec;

/**
 * @author Jimmy
 * @date 2022/11/13 - 19:31
 */
public class Circle {
    private double radius;

    public Circle(){
        this.radius = 1.0;
    }
    public Circle(double radius){
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    public double findArea(){
        return (Math.PI * Math.pow(radius, 2));
    }
}
